/*
 * This file is part of WebCL – JavaScript bindings for OpenCL
 * http://webcl.nokiaresearch.com/
 *
 * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
 *
 * Contact: Jari Nikara  ;jari.nikara@nokia.com;
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License
 * version 2.1 as published by the Free Software Foundation.
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA
 *
 *
 * The package is based on a published Khronos OpenCL 1.1 Specification,
 * see http://www.khronos.org/opencl/.
 *
 * OpenCL is a trademark of Apple Inc.
 */

#include "WebCLCommon.h"
#include "WebCL_clwrapper.h"

// Prevent error C2371 on MS Visual C++ 10 compiler.
#if _MSC_VER >= 1000
// Let jsapi know that it doesn't need to provide C99 exact types itself.
# define JS_HAVE_STDINT_H 1
#endif


// WebCLCommon

WebCLCommon::WebCLCommon ()
  : mWrapper(0)
{
  D_METHOD_START;
}


WebCLCommon::~WebCLCommon ()
{
  D_METHOD_START;
}


void WebCLCommon::setWrapper (WebCL_LibCLWrapper* aWrapper)
{
  mWrapper = aWrapper;
}


WebCL_LibCLWrapper* WebCLCommon::getWrapper ()
{
  return mWrapper;
}
